package com.zrx.app.android.service;

import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

/**
 * Created by liuji on 2017/4/27.
 *
 * 广播接收组件
 */

public class BroadcastReceiver extends android.content.BroadcastReceiver {
    private static final String TAG = "BroadcastReceiver";

    @Override
    public void onReceive(final Context context, Intent intent) {
        Log.d(TAG, "onReceive called");

        Intent i = new Intent(context, UploadService.class);
        context.startService(i);
    }
}
